package com.xjzp.business.action.login;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.bjf.exception.BJFException;
import com.bjf.exception.ForAjaxException;
import com.bjf.struts.action.base.BaseAction;

public class LogoutAction extends BaseAction {

	@Override
	public ActionForward process(ActionMapping actionMapping,
			ActionForm actionForm, HttpServletRequest request,
			HttpServletResponse response) throws BJFException,
			ForAjaxException, Exception {
		// TODO Auto-generated method stub
		request.getSession().invalidate();
		
		return actionMapping.findForward("main");
	}

}
